﻿//  --------------------------------
//  Copyright (c) AW Systems, Inc. All rights reserved.
//  This source code is made available under the terms of the Microsoft Public License (Ms-PL)
//  http://www.codeplex.com/SLAM/license
//  ---------------------------------

using System;

namespace AWS.SLAM.Activation
{
    /// <summary>
    /// IActivator defines those actions performed by SLAM on its feature activation and deactivation.
    /// </summary>
    public interface IActivator
    {
        /// <summary>
        /// Activates SLAM.  
        /// </summary>
        /// <remarks>Activate is called by the SLAM FeatureReceiver's FeatureActivated method.</remarks>
        /// <returns>Boolean indicating whether Activate succeeded</returns>
        bool Activate(string siteCollectionName);

        /// <summary>
        /// Deactivates SLAM.
        /// </summary>
        /// <remarks>Deactivate is called by the SLAM FeatureReceiver's FeatureDeactivated method.</remarks>
        /// <returns>Boolean indicating whether Deactivate succeeded</returns>
        bool Deactivate();
    }
}
